package cn.ryh.listener.code;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * @ClassName CodeSessionListener
 * @Description 通过代码注册Listener,实现HttpSessionListener接口，监听Session的创建与销毁
 * @Author RaoYH
 */
public class CodeSessionListener implements HttpSessionListener{
    @Override
    public void sessionCreated(HttpSessionEvent se) {

        System.out.println("CodeSessionListener 初始化");
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {

        System.out.println("CodeSessionListener 销毁");
    }
}
